//
//  ZYCurriculumMajorCategoryView.h
//  ZYSelect
//
//  Created by Ethan on 2017/8/24.
//  Copyright © 2017年 乾坤. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ZYBigCourseModel;
@class ZYBigCourseTowModel;
@class ZYBigCourseThreeModel;
typedef void (^SelectIndex)(NSInteger selectIndex);//编码
typedef void (^SelectValue)(NSString *selectValue);//数值

@interface ZYCurriculumMajorCategoryView : UIView<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) NSArray *titles;//string数组

@property (nonatomic, strong) UILabel *titleLabel;//标题label
@property (nonatomic, strong) UIButton *closeButton;//关闭按钮

@property (nonatomic, copy) SelectIndex selectIndex;
@property (nonatomic, copy) SelectValue selectValue;

@property (nonatomic,strong) ZYBigCourseModel *model;
@property (nonatomic,strong) ZYBigCourseTowModel *modelTow;
@property (nonatomic,strong) ZYBigCourseThreeModel *modelThree;
@property (nonatomic,assign) BOOL isUp;//判断是否是小类目
@property (nonatomic,assign) BOOL isUpAll;//判断是否是评价膜拜
/*!
 * @abstract 创建弹窗下拉列表类方法
 *
 * @param title 下拉框标题
 * @param titles 下拉框显示的string数组
 * @param selectIndex 选择的index
 * @param selectValue 选择的string
 * @param showCloseButton 显示关闭按钮则关闭点击列表外remove弹窗的功能
 *
 */
+ (ZYCurriculumMajorCategoryView *)showWithTitle:(NSString *)title
                                          titles:(NSArray *)titles
                                zYBigCourseModel:(ZYBigCourseModel *)model
                             zYBigCourseTowModel:(ZYBigCourseTowModel *)modelTow
                           zYBigCourseThreeModel:(ZYBigCourseThreeModel *)modelThree
                                     selectIndex:(SelectIndex)selectIndex
                                     selectValue:(SelectValue)selectValue

                                 showCloseButton:(BOOL)showCloseButton isUp:(BOOL)isUp isUpAll:(BOOL)isUpAll;

@end
